package com.sx.entity.design;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sx.basic.BasicEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.List;

/**
 * @author AdinZ
 * @date 2020/11/12 17:02
 * 组件模型
 */
@Data
@NoArgsConstructor
@TableName(value = "sx_design_module")
@Entity
@Table(name = "sx_design_module")
public class DesignModuleEntity extends BasicEntity {
    public static final String KEY="DesignModuleEntity";
    @Id
    @GeneratedValue
    private Long id;
    @ApiModelProperty("组件名称")
    private String name;
    @ApiModelProperty("组件介绍")
    private String body;
    @ApiModelProperty("组件图片")
    private String thumb;
    @ApiModelProperty("组件变量")
    private String variable;
    @ApiModelProperty("组件参数")
    @TableField(exist = false)@Transient
    private List<DesignParamsEntity> list;
}
